﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QSiemensPlcPlayer
{
    public partial class MainWindowViewModel:ObservableObject
    {
        [ObservableProperty]
        private string ip;
        [ObservableProperty]
        private int port;


		[ObservableProperty]
		private int useModelSelected;



		public ObservableCollection<UseModel> UseModels { get; set; }

		public MainWindowViewModel()
		{
			UseModels = new ObservableCollection<UseModel>(new List<UseModel>
			{
				new UseModel{Name="手动模式",Value=0},
				new UseModel{Name="春秋模式",Value=1},
				new UseModel{Name="夏季模式",Value=2},
				new UseModel{Name="冬季模式",Value=3}
			});
			







		}




	}

	public class UseModel
	{
		public string Name { get; set; }
		public int Value { get; set; }
	}
}
